﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>个人专栏-EHS中国-</title>
    <link href="__TMPL__style/group-style.css" rel="stylesheet" type="text/css" />
    <load href="__PUBLIC__/Css/lwy2011.css" />
    <script type="text/javascript" src="__ROOT__/Public/Js/jquery-1.5.0.min.js"></script>
    <script type="text/javascript" src="__ROOT__/Public/Js/ehs.js"></script>
</head>
<body>
<layout name="Public:circle-header2" cache="0" />
<layout name="Public:group-member-base" cache="0" />

<div class="content">
    <div class="column_left">
    	<div class="column-head">
        	<div class="column-bg-right"></div>
        	<h2>{$base['username']}专栏</h2>
           <!-- <div class="column-expand rss"><img src="__TMPL__images/group/rss.png" /></div>-->
        </div>
        <div class="column-cont">
        	<div class="state"><strong>声明：</strong>ehs.cn专家专栏文章属专家原创内容，代表个人观点，授权于ehs.cn使用；如需转载请保留原意并注明来源：ehs.cn，作者：ehs.cn专家－{$base['username']}，请尊重原创！
			</div>
            <div class="column-cont-list">
			   <volist name="newest['diary']['list']" id="item">
           	  	<dl>
                	<dt><h3><a href="/pw8/apps.php?q=diary&a=detail&isFrame=1&did={$item['did']}">{$item['subject']}</a></h3></dt>
                	<dd class="publish-time">发表于:<?=date('Y-m-d/H:i:s',$item['postdate'])?></dd>
                    <dd>
                    	<div class="btn_tj" id="d_{$item['did']}" onclick="setPromote('d',{$item['did']})" style="cursor:pointer">{$item['c_num']}<span>已推荐</span></div>
                    	{$item['content']}
                        <div>...</div>
                  	</dd>
                    <dd class="column-cont-bottom"><a href="/pw8/apps.php?q=diary&a=detail&isFrame=1&did={$item['did']}">阅读</a>({$item.r_num}) |<a href="/pw8/apps.php?q=diary&a=detail&isFrame=1&did={$item['did']}">评论</a>({$item.c_num})</dd>
                </dl>
				</volist>
                <div class="column-paging"><div class='yahoo'>{$newest['diary']['nav']}</div></div>
            </div>
        </div>
    </div>
  	<div class="column_right">
    	<div class="column-user">
      		<div class="column-head">
                <div class="column-bg-right"></div>
                <h2>专栏作者</h2>
               <!-- <div class="column-expand"><a href="#">&gt;&gt; 详细</a></div>-->
          	</div>
            <div class="user-introduction column-cont-box">
                <dl>
                  <dt><img src="{$base['icon']}"  style="width:112px;"/></dt>
                    <dd><h3>{$base['username']}</h3></dd>
                    <dd>{$base['introduce']}</dd>
                </dl>
                <!--<div class="link"><a href="#">我的专栏首页</a> | <a href="#">与我联系</a> | <a href="#">给我留言</a></div>-->
                <div class="btn-link">
                <ul>
                  <li><a href="/main/user.php?s=/index/index/pwurl/<?=urlencode('apps.php?q=diary&a=write')?>">我要发布文章</a></li>
                  <li><a href="/main/user.php">我的个人中心</a></li>
				   <!--<li><a href="/main/user.php?s=/index/index/pwurl/<?=urlencode('profile.php?action=modify')?>">修改个人资料</a></li>-->
				    <!--<li><a href="/main/user.php?s=/index/index/pwurl/<?=urlencode('apps.php?q=photos')?>">个人相册</a></li>-->
                  <!--<li><a href="#">我要联系编辑</a></li>-->
                  <div class="clear"></div>
                </ul>
                </div>
                <div class="count-article">文章({$newest['aNum']}) | 评论({$newest['cNum']}) | 访问({$base['visits']})</div>
            </div>
		</div>
        <div class="article-list">
        	<div class="column-head">
                <div class="column-bg-right"></div>
                <h2>文章列表</h2>
                <!--<div class="column-expand"><a href="#">&gt;&gt; 更多</a></div>-->
          	</div>
            <div class="column-cont-box">
                <ul>
				  <volist name="newest['article']" id='item'>
                    <li><a href="/main/public.php?s=/circle/article/cyid/{$item.cyid}/id/{$item.id}">{$item['title']}</a></li>
				  </volist>	
                </ul>
          </div>
      	</div>
      	<div class="article-list">
        	<div class="column-head">
                <div class="column-bg-right"></div>
                <h2>推荐文章</h2>
                <!--<div class="column-expand"><a href="#">&gt;&gt; 更多</a></div>-->
          	</div>
            <div class="column-cont-box">
                <ul>
				  <volist name="newest['tjArr']" id='item'>
                    <li><a href="/main/public.php?s=/circle/article/cyid/{$item.cyid}/id/{$item.id}">{$item['title']}</a></li>
				  </volist>
                </ul>
          </div>
      	</div>
       <!-- <div class="column-search">
        	<div class="column-head">
                <div class="column-bg-right"></div>
                <h2>专栏搜索</h2>
                <div class="column-expand"><a href="#">&gt;&gt; 更多</a></div>
          	</div>
            <div class="column-cont-box">
            	<form>
                	<label><input name="input" type="button" class="btn-column-search" value="搜索" />关 键 字：<input name="" type="text" style="width:110px; height:16px;" />
                	
                	</label>
                    <label>搜索类型：
                    	<input type="radio" name="RadioGroup1" value="专家" id="RadioGroup1_0" />专家
                        <input type="radio" name="RadioGroup1" value="作者" id="RadioGroup1_1" />作者
                        <input type="radio" name="RadioGroup1" value="文章" id="RadioGroup1_2" />文章
                    </label>
                </form>
            </div>
        </div>-->
        <div class="column-archive">
        	<div class="column-head">
                <div class="column-bg-right"></div>
                <h2>我的存档</h2>
                <!--<div class="column-expand"><a href="#">&gt;&gt; 更多</a></div>-->
          	</div>
            <div class="column-cont-box">
            	<ul>
				   <li style="display:block"><a href="__ACTION__/uid/{$uid}/type/{$item['dtid']}">全部({$newest['aNum']}) </a></li>
				  <volist name="newest['aType']" id='item'>
                	<li><a href="__ACTION__/uid/{$uid}/type/{$item['dtid']}">{$item['name']}({$item['num']}) </a></li>
                  </volist>
				  <li style="display:block"><a href="__ACTION__/uid/{$uid}/type/{$item['dtid']}">默认({$newest['dNum']}) </a></li>
                </ul>
                <div class="clear"></div>
            </div>
        </div>
        <!--<div class="reader-rss">
        	<p>离线阅读器订阅地址</p>
        	<a href="#"><img src="images/group/column-rss001.png" border="0" /></a><a href="#"><img src="images/group/column-rss002.png" border="0" /></a><a href="#"><img src="images/group/column-rss003.png" border="0" /></a><a href="#"><img src="images/group/column-rss004.png" border="0" /></a>
        </div>-->
        <div class="column-comm">
        	<div class="column-head">
                <div class="column-bg-right"></div>
                <h2>最新评论</h2>
                <!--<div class="column-expand"><a href="#">&gt;&gt; 更多</a></div>-->
          	</div>
            <div class="column-cont-box">
                <ul>
				  <volist name="newest['commend']" id="item">
                    <li><a href="/main/public.php?s=/circle/article/cyid/{$item.cyid}/id/{$item.id}">{$item['title']}</a></li>
				  </volist>	
                </ul>
          </div>
        </div>
    </div>
  	<div class="clear"></div>
</div>
<div class="footer">
      <layout name="Public:footer" cache="0" /></div>
 </div>
     <script>
      var doneList=new Array();
      function setPromote(type,id){
        var doneFlag=false;
        for(var i=0; i<doneList.length ;++i){
          if(doneList[i]==type+'_'+id){
            doneFlag=true;
            break;
          }
        }
        if(!doneFlag){
          //document.write('__URL__/setPromoteAjax/type/'+type+'/uid/'+{$uid}+'/id/'+id);
          $.getJSON('__URL__/setPromoteAjax/type/'+type+'/isAjax/1/id/'+id,
          function(data){
            var num=parseInt(data.result);
            if(num>0){
              $('#'+type+'_'+id).html(num+"<span>已推荐</span>");
              doneList.push(type+'_'+id);
              alert('推荐成功');
            }
          }
        );
        }else{alert('您已经推荐过该文章了');}
      }
    </script>
</body>
</html>